# Maintainer: Francesco Camuffo <dev@fmac.xyz>
pkgname=hare-scfg
pkgver=0_git20220501
_commit=822eb868ddd40df3b19e862303cdeddc33c3c1e4
pkgrel=1
pkgdesc="scfg implementation for Hare"
url="https://git.sr.ht/~chrisppy/hare-scfg"
arch="x86_64 aarch64" # hare
license="MPL-2.0"
makedepends="hare"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~chrisppy/hare-scfg/archive/$_commit.tar.gz
	new-hare.patch
"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
f1e255f80be5251b1d15564f6c7193f59452a1dcd03236880c44edcdeecefcbf2f51f4d4a4c89d4a14e4bd87b2624a5259925a02f449cb1a529e533d00381b3f  hare-scfg-822eb868ddd40df3b19e862303cdeddc33c3c1e4.tar.gz
387a85ba10fa757da33fdb8e3ca999a5f09e3bc122808739c803646e1e9c92acf1b41f0e20727d2988a4e9c7eef64205ba3d24984f241182a996b94f91bbfb11  new-hare.patch
"
